package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-03-02
 */
@TableName("package")
@Getter
@Setter
public class VpnPackageInfo extends Model<VpnPackageInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "package_id", type = IdType.AUTO)
    private Integer id;
    /**
     * 类别：
     * 1-固定类别
     * 2-专属类别
     * 3-分享福利
     * 4-评价福利
     */
    @TableField("package_type")
    private String packageType;
    /**
     * 套餐名称
     */
    @TableField("package_name")
    private String packageName;
    /**
     * 套餐状态
     * 0-已停用
     * 1-已生效
     * 2-未生效
     */
    @TableField("status")
    private String status;
    /**
     * 最大支持设备数
     */
    @TableField("device_count")
    private Integer deviceCount;
    /**
     * 套餐价格
     */
    @TableField("price")
    private Double price;
    /**
     * 价格单位
     */
    @TableField("price_unit")
    private String priceUnit;
    /**
     * 套餐服务天数
     */
    @TableField("duration")
    private Integer duration;
    /**
     * 英文名称
     */
    @TableField("english_name")
    private String englishName;
    /**
     * 台湾名称
     */
    @TableField("taiwan_name")
    private String taiwanName;

    @TableField("apple_product_id")
    private String appleProductId;


    @TableField("actual_price")
    private Double hkPrice;

    @TableField("actual_price_unit")
    private String actualPriceUnit;

    @TableField("show_sort")
    private Integer showSort;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
